// part1:C06:ex6.11.cpp
// references arguments.
#include <iostream>

void reset(int &i) {
  i = 0;
}

int main(void) {
  using namespace std;
  int num = 10;
  cout << "before reset num = " << num << endl;
  reset(num);
  cout << "after reset num = " << num << endl;

  return 0;
}
